package com.design.javaManage.entity;



// 菜单

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
public class SysMenu {

    @ApiModelProperty(value = "主键")
    private Long id;

    @ApiModelProperty(value = "前端路由")
    private String path;

    @ApiModelProperty(value = "菜单图标")
    private String icon;

    @ApiModelProperty(value = "菜单标题")
    private String title;

    @ApiModelProperty(value = "前端组件")
    private String component;

    @ApiModelProperty(value = "显示状态")
    private boolean status;

    // JsonIgnore 不被序列化 前端就取不到
    @ApiModelProperty(value = "父级菜单")
    private Long parentId;
    // 子菜单
    @ApiModelProperty(value = "子菜单")
    private List<SysMenu> children;


}
